package com.xx.service;
import com.xx.dao.MessageDao;
import com.xx.entity.Employee;
import com.xx.entity.Message;
import com.xx.util.Pager;






public class Messages {
	
	public static Pager<Message> method(String id,int num,Employee employee){
		
		
		Pager<Message>     pager =Messages.mes(id,num);
	
		return pager;


	}
	
	public static Pager<Message> mes(String id,int num ){
		MessageDao message=new MessageDao();
		return message.findMessage(id,num);
	}

	public static void del(String mid) {
	
		MessageDao message=new MessageDao();
		message.del(mid);
	}
}
